Skip to content

[SPARK-58858] Add scg-config crate - #4

Closed
viirya wants to merge 1 commit into
apache:mainfrom
viirya:import-03-config
Closed

[SPARK-58858] Add scg-config crate#4
viirya wants to merge 1 commit into
apache:mainfrom
viirya:import-03-config

Conversation

@viirya

@viirya viirya commented Aug 19, 2026

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

Part of importing the Spark Connect Gateway reference implementation into
apache/spark-connect-gateway as a series of small, bottom-up PRs (tracked in
the do-not-merge reference PR #1).

This adds the scg-config crate — the YAML configuration layer for the gateway.
It defines the config schema (deserialized with serde) and the loader that reads
and validates the gateway's YAML configuration at startup.

scg-config is a leaf crate (no internal dependencies), so it compiles and
tests on its own (45 unit tests covering the schema and loader). It is appended
to the workspace members list and is consumed later by the gateway binary.

Why are the changes needed?

Implements the reference gateway from the approved SPIP (SPARK-58455), imported
one reviewable piece at a time.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

cargo fmt --all --check, cargo clippy --workspace --all-targets -- -D warnings,
cargo build --workspace, and cargo test --workspace all pass locally
(scg-config has 45 unit tests).

Was this patch authored or co-authored using generative AI tooling?

Yes, co-authored with Claude Code.

Part of importing the Spark Connect Gateway reference implementation into
apache/spark-connect-gateway as a series of small, bottom-up PRs.

This adds the scg-config crate — the YAML configuration layer for the gateway.
It defines the config schema (deserialized with serde) and the loader that
reads and validates the gateway's YAML configuration at startup.

scg-config is a leaf crate (no internal dependencies), so it compiles and tests
on its own (45 unit tests covering the schema and loader). It is appended to
the workspace members list and is consumed later by the gateway binary.

Co-authored-by: Claude Code

@dongjoon-hyun dongjoon-hyun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM.

@viirya viirya closed this in 3d796c4 Aug 20, 2026
@viirya
viirya deleted the import-03-config branch August 20, 2026 06:24
@viirya

viirya commented Aug 20, 2026

Copy link
Copy Markdown
Member Author

Thanks @dongjoon-hyun @HyukjinKwon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants